home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / mus / edit / QuadraComp.lha / QuadraComposer / QCInstall2.1 < prev    next >
Text File  |  1993-03-16  |  5KB  |  253 lines

  1. ;$VER: QCInstall v1.01
  2. ;By Bo Lincoln 1993-94
  3. ;This script uses the installer program to install Quadra Composer to
  4. ;your hard drive. 
  5.  
  6. (complete 0)
  7. (welcome)
  8.  
  9. ;Check kickver
  10. (if (< (/ (getversion) 65536) 37)
  11.     (abort ("You must have kickstart 2.0x + to use this installation "
  12.         "utility, and to run QuadraComposer 2.1")  
  13.     )
  14. )
  15.  
  16. (message
  17.     ("\nThis program lets you install Quadra Composer to your hard ")
  18.     ("disk drive. If you don't own one, abort installation immediately. ")
  19. )
  20.  
  21. (set sdir (pathonly @icon))
  22. ;Get dir for drawer
  23. (set tdir (askdir (prompt ("Where do you want to install Quadra Composer 2.1?"))
  24.         (help ("Select a drawer where you want to install the ")
  25.         ("Quadra Composer 2.1.\n")
  26.         )
  27.         (default @default-dest)
  28.     )
  29. )
  30. (set @default-dest tdir)
  31.  
  32. (set ans (askbool 
  33.             (
  34.             (prompt "\nDo you want to make a new drawer called QuadraComposer?")
  35.             (help "")
  36.             )
  37.         )
  38. )
  39. (if 
  40.     (= 1 ans)
  41.  
  42.     (
  43.         (makedir (tackon tdir "QuadraComposer") (infos))
  44.         (set tdir (tackon tdir "QuadraComposer"))
  45.     )
  46.  
  47. )
  48. (working ("Copying Quadra Composer"))
  49. ;Copy main program
  50. (copyfiles
  51.     (source (tackon sdir "QuadraComposer"))
  52.     (dest tdir)
  53.     (help @copyfiles-help)
  54.     (infos)
  55. )
  56.  
  57. (complete 40)
  58.  
  59. (if (exists (tackon sdir "Icons"))
  60.     (if ( askbool 
  61.             (
  62.             (prompt "\nDo you wish to install the icon images?")
  63.             (help "")
  64.             )
  65.         )
  66.     (
  67.         (makedir (tackon tdir "Icons") (infos))
  68.         (if (exists (tackon sdir "Icons") (noreq))
  69.             (
  70.                 (copyfiles
  71.                     (source (tackon sdir "Icons/"))
  72.                     (dest (tackon tdir "Icons/"))
  73.                     (all)
  74.                     (infos)
  75.                 )
  76.             )
  77.         )
  78.     )
  79.     )
  80. )
  81.  
  82. (complete 45)
  83.  
  84. (if (OR (exists (tackon sdir "Samples") (noreq)) (exists (tackon sdir "Modules") (noreq))  (exists (tackon sdir "Envelopes") (noreq)))
  85.     (if ( askbool 
  86.             (
  87.             (prompt "\nDo you wish to install some example modules, samples and envelopes?")
  88.             (help "")
  89.             )
  90.         )
  91.     (
  92.         (makedir (tackon tdir "Samples") (infos))
  93.         (makedir (tackon tdir "Modules") (infos))
  94.         (makedir (tackon tdir "Envelopes") (infos))
  95.         (if (exists (tackon sdir "Samples") (noreq))
  96.             (
  97.                 (copyfiles
  98.                     (source (tackon sdir "Samples/"))
  99.                     (dest (tackon tdir "Samples/"))
  100.                     (all)
  101.                     (infos)
  102.                 )
  103.             )
  104.         )
  105.         (if (exists (tackon sdir "Modules") (noreq))
  106.             (
  107.                 (copyfiles
  108.                     (source (tackon sdir "Modules/"))
  109.                     (dest (tackon tdir "Modules/"))
  110.                     (all)
  111.                     (infos)
  112.                 )
  113.             )
  114.         )
  115.         (if (exists (tackon sdir "Envelopes") (noreq))
  116.             (
  117.                 (copyfiles
  118.                     (source (tackon sdir "Envelopes/"))
  119.                     (dest (tackon tdir "Envelopes/"))
  120.                     (all)
  121.                     (infos)
  122.                 )
  123.             )
  124.         )
  125.     )
  126.     )
  127. )
  128.  
  129. (complete 50)
  130. (if (exists (tackon sdir "Docs") (noreq))
  131.     (
  132.     (set ans (askbool 
  133.                 (
  134.                 (prompt "\nDo you wish to install the documentation?")
  135.                 (help "")
  136.                 )
  137.             )
  138.     )
  139.     (if 
  140.         (= 1 ans)
  141.         (
  142.             (makedir (tackon tdir "Docs") (infos))
  143.             (copyfiles
  144.                 (source (tackon sdir "Docs/"))
  145.                 (dest (tackon tdir "Docs/"))
  146.                 (all)
  147.                 (infos)
  148.             )
  149.         )
  150.     )
  151.     )
  152. )
  153.  
  154. (complete 70)
  155. (message
  156.     "\nAnd now the fonts, QC 6 & 8, will be copied..."
  157. )
  158. (copyfiles
  159.     (source (tackon sdir "fonts"))
  160.     (all)
  161.     (dest "FONTS:")
  162.     (fonts)
  163.     (help @copyfiles-help)
  164. )
  165. (complete 75)
  166. (message
  167.     "\nSome replayroutines are included in this package."
  168.     " They will now be installed..."
  169. )
  170.  
  171. (copyfiles
  172.     (prompt "Select files to copy:")
  173.     (source sdir)
  174.     (dest tdir)
  175.     (choices
  176.         "QCReplay.s"
  177.         "QCFastreplay.s"
  178.         "QCCIAReplay.s"
  179.     )
  180.     (confirm)
  181.     (infos)
  182.     (help @copyfiles-help)
  183. )
  184.  
  185. (complete 80)
  186. (if (exists "s:QuadraComposer.prefs")
  187.     (if (askbool (prompt "\nIn this version of QuadraComposer, the prefs file will "
  188.                          "be stored in the ENVARC: drawer, instead of S:.\nDo you want to move "
  189.                          "your current prefs file there?"
  190.                     )
  191.                 (help "")
  192.         )
  193.         (
  194.         (copyfiles
  195.             (source "s:QuadraComposer.prefs")
  196.             (dest "ENVARC:")
  197.             (help @copyfiles-help)
  198.         )
  199.         (delete "s:QuadraComposer.prefs")
  200.         )
  201.     )
  202. )
  203.  
  204. (complete 85)
  205. (if (exists (tackon sdir "QuadraPlayer"))
  206.     (if ( askbool 
  207.             (
  208.             (prompt "\nThere is a stand-alone module player distributed with QuadraComposer."
  209.                     "\nDo you wish to install it?"
  210.             )
  211.             (help "")
  212.             )
  213.         )
  214.         (copyfiles
  215.             (source (tackon sdir "QuadraPlayer"))
  216.             (dest tdir)
  217.             (help @copyfiles-help)
  218.             (infos)
  219.         )
  220.     )
  221. )
  222.  
  223. (if (exists (tackon sdir "QuadraComposer.key"))
  224.     (
  225.         (message "\nYou are a registered user of QuadraComposer.\n"
  226.                 "From this version of QuadraComposer, you will be recognized through the file "
  227.                 "ENVARC:QuadraComposer.key. If you want to copy this disk to someone else, "
  228.                 "make sure that file is removed from the disk first."
  229.         )
  230.         (copyfiles
  231.             (source (tackon sdir "QuadraComposer.key"))
  232.             (dest "ENVARC:")
  233.             (help @copyfiles-help)
  234.         )
  235.     )
  236. )
  237.  
  238. (complete 95)
  239. (message
  240.     "\nThis is the last part of this installation. 'reqtools.library' will "
  241.     "be copied to your libs: drawer, if you don't " 
  242.     "already have a later version installed."
  243. )
  244. (copylib
  245.     (prompt "Copying reqtools...")
  246.     (help @copylib-help)
  247.     (source (tackon sdir "libs/reqtools.library"))
  248.     (dest "libs:")
  249.     (confirm)
  250. )
  251. (complete 100)
  252. (exit ("Have fun!"))
  253.